Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: locate -> context #3

Merged
merged 1 commit into from
Dec 6, 2024
Merged

Conversation

wardenxyz
Copy link
Contributor

locate 已被新版本弃用,如果仍然使用 locate 的话会报 warning:

`locate` with callback function is deprecated
Hint: use a `context` expression instead

所以我把它换为了 context

@a-kkiri
Copy link
Owner

a-kkiri commented Dec 6, 2024

感谢你提交的PR!在写这段代码时,我一直苦于不知道怎么用 context 代替 locate,谢谢你实现了它。👍

@a-kkiri a-kkiri merged commit 70d4189 into a-kkiri:main Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants